package com.csi.okr.mobile.common.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
/**
 * 
 * 岗位序列实体类
 *
 */
@Entity
@Table(name = "V_OKR_POST_SEQ", schema = "PSGIS")
public class VOkrPostSeq implements Serializable {

	private static final long serialVersionUID = 1L;

	private String postseqUuid;
	private String postseqCode;
	private String postseqName;
	private String sortId;
	@Id
	@Column(name = "POSTSEQ_UUID")
	public String getPostseqUuid() {
		return postseqUuid;
	}

	public void setPostseqUuid(String postseqUuid) {
		this.postseqUuid = postseqUuid;
	}

	@Column(name = "POSTSEQ_CODE")
	public String getPostseqCode() {
		return postseqCode;
	}

	public void setPostseqCode(String postseqCode) {
		this.postseqCode = postseqCode;
	}

	@Column(name = "POSTSEQ_NAME")
	public String getPostseqName() {
		return postseqName;
	}

	public void setPostseqName(String postseqName) {
		this.postseqName = postseqName;
	}

	@Column(name = "SORT_ID")
	public String getSortId() {
		return sortId;
	}

	public void setSortId(String sortId) {
		this.sortId = sortId;
	}
	
	private List<VOkrPost> postList;
	
	@OneToMany(fetch=FetchType.EAGER)
	@JoinColumn(name="POSTSEQ_UUID",referencedColumnName="POSTSEQ_UUID",insertable=false,updatable=false)
	public List<VOkrPost> getPostList() {
		return postList;
	}

	public void setPostList(List<VOkrPost> postList) {
		this.postList = postList;
	}
	
	
	

}
